/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package muets;

/**
 *
 * @author Dudu
 */
public class IPSecPolicy {
private String name,source,destination,protocol,direction,action,tunnel_in,_tunnel_out,type,transport_type,level;

    public IPSecPolicy(String name,String source, String destination, String protocol, String direction, String action, String tunnel_in, String _tunnel_out, String type, String transport_type, String level) {
        this.name="IPSecPolicy : "+source+" >> "+destination;
        this.source = source;
        this.destination = destination;
        this.protocol = protocol;
        this.direction = direction;
        this.action = action;
        this.tunnel_in = tunnel_in;
        this._tunnel_out = _tunnel_out;
        this.type = type;
        this.transport_type = transport_type;
        this.level = level;
    }

    public IPSecPolicy() {
    }

    public String getTunnel_out() {
        return _tunnel_out;
    }

    public void setTunnel_out(String _tunnel_out) {
        this._tunnel_out = _tunnel_out;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTransport_type() {
        return transport_type;
    }

    public void setTransport_type(String transport_type) {
        this.transport_type = transport_type;
    }

    public String getTunnel_in() {
        return tunnel_in;
    }

    public void setTunnel_in(String tunnel_in) {
        this.tunnel_in = tunnel_in;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String get_tunnel_out() {
        return _tunnel_out;
    }

    public void set_tunnel_out(String _tunnel_out) {
        this._tunnel_out = _tunnel_out;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final IPSecPolicy other = (IPSecPolicy) obj;
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
            return false;
        }
        if ((this.source == null) ? (other.source != null) : !this.source.equals(other.source)) {
            return false;
        }
        if ((this.destination == null) ? (other.destination != null) : !this.destination.equals(other.destination)) {
            return false;
        }
        if ((this.protocol == null) ? (other.protocol != null) : !this.protocol.equals(other.protocol)) {
            return false;
        }
        if ((this.direction == null) ? (other.direction != null) : !this.direction.equals(other.direction)) {
            return false;
        }
        if ((this.action == null) ? (other.action != null) : !this.action.equals(other.action)) {
            return false;
        }
        if ((this.tunnel_in == null) ? (other.tunnel_in != null) : !this.tunnel_in.equals(other.tunnel_in)) {
            return false;
        }
        if ((this._tunnel_out == null) ? (other._tunnel_out != null) : !this._tunnel_out.equals(other._tunnel_out)) {
            return false;
        }
        if ((this.type == null) ? (other.type != null) : !this.type.equals(other.type)) {
            return false;
        }
        if ((this.transport_type == null) ? (other.transport_type != null) : !this.transport_type.equals(other.transport_type)) {
            return false;
        }
        if ((this.level == null) ? (other.level != null) : !this.level.equals(other.level)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

}
